#include "SimpleAIEntity.h"

#include <random>

#include "../Managers/GameService.h"
#include "../Managers/LevelManager.h"

//-------------------------------------------------------------------------------------------
SimpleAIEntity::SimpleAIEntity(int team)
	:GameEntity(team)
{
	std::srand (time(NULL));
}

//-------------------------------------------------------------------------------------------
SimpleAIEntity::~SimpleAIEntity()
{
}

//-------------------------------------------------------------------------------------------
void SimpleAIEntity::OnNodeReached()
{
	/*m_pCurrentNodeID = m_pDestinationNodeID;

	int ranNum = std::rand() % 4 + 1;
	Node::Direction dir = (Node::Direction)ranNum;

	Node* pNode = m_pLevelManager->GetNode(m_pCurrentNodeID);

	int newNodeID = pNode->GetConnection(dir);
	
	if (newNodeID == -1 || newNodeID == m_pLastNodeID)
		return;

	m_pLastNodeID = m_pCurrentNodeID;
	m_pDestinationNodeID = newNodeID;

	SetProgress(0);*/
}

//-------------------------------------------------------------------------------------------
void SimpleAIEntity::Tick(float DeltaTime)
{
}

//-------------------------------------------------------------------------------------------